<div id="page-wrapper">
    <div class="row headline-check">
        <div class="col-md-12 headline-title" >
            <h3>学员招生 <img src="assets/img/angle-right.png" alt="" class="tubiao"></h3><h4>修改一对一合同</h4>
        </div>
    </div>
    <div class="row createbutton" >
        <div class="col-md-1" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"  onclick="javascript:history.back(-1);" >返回上一页</button>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6 revise-left" >
            <div class="containerleft" style="background-color: #f9fffe;">
        <div>
            <span class="daily-list">报课单列表</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>报课单编号</th>
                <th>实际缴费</th>
                <th>欠费</th>
                <th>报课日期</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody >
            <tr ng-repeat="data in enrol_datas">
                <td>{{data.sn}}</td>
                <td>{{data.tuition_reality}}</td>
                <td>{{data.tuition_lack}}</td>
                <td>{{data.createtime}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==2">申请通过</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="enrolapply($index)" ng-if="data.state==0 || data.state==3">申请</span>
                    <!--<span class="operation fa fa-edit"  ng-click="updata($index)">修改</span>-->
                    <span class="operation fa fa-trash-o" ng-click="delete($index)" ng-if="data.state==0 || data.state==3">删除</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
            <div class="containerleft" style="background-color: #fffdf5;" >
        <div>
            <span class="daily-list">退课单列表</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>所退学费</th>
                <th>退课日期</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody >
            <tr ng-repeat="data in drop_datas ">
                <td>{{data.drop_total}}</td>
                <td>{{data.createtime}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==2">申请通过</td>
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="dropapply($index)" ng-if="data.state==0 || data.state==3">申请</span>
                    <span class="operation fa fa-trash-o" ng-click="dropdelete($index)" ng-if="data.state==0 || data.state==3">删除</span>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
            <div class="containerleft"  style="background-color: #fefcff;" >
        <div>
            <span class="daily-list">缴费记录</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>缴费金额</th>
                <th>缴费日期</th>
                <th>缴费类型</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody >
            <tr ng-repeat="data in mend_datas">
                <td>{{data.amount}}</td>
                <td>{{data.createtime}}</td>
                <td>{{data.method_name}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==2">申请成功</td>
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="mend_apply($index)"  ng-if="data.state==0 || data.state==3">申请</span>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
        </div>
        <div class="col-md-6 revise-right" >
            <div class="containerright">
                <table width="100%" align="center">
            <tbody class="revise-information">
            <tr style="border-bottom: 1px solid #e2e2e3">
                <td  height="52">合同编号：</td>
                <td>{{findstudent.pact_sn}}</td>
                <td>创建合同日期：</td>
                <td>{{findstudent.createtime}}</td>
                <td></td>
                <td>
                    <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" ng-click="submit()">提交</button>
                </td>
            </tr>
            <tr >
                <td height="52" style="color: #8c8c8c">学员姓名：</td>
                <td>{{findstudent.student_name}}</td>
                <td style="color: #8c8c8c">学员卡号：</td>
                <td>{{findstudent.student_sn}}</td>
                <td style="color: #8c8c8c">来源学校：</td>
                <td>{{findstudent.school}}</td>
            </tr>
            <tr >
                <td height="52" style="color:#8c8c8c">年级：</td>
                <td>{{findstudent.grade_name}}</td>
                <td style="color: #8c8c8c">手机号：</td>
                <td ><span ng-if="findstudent.mobile1!=null">{{findstudent.mobile1}} </span><span ng-if="findstudent.mobile2!=null">{{findstudent.mobile2}}</span><span ng-if="findstudent.mobile3!=null">{{findstudent.mobile3}}</span></td>
                <td style="color: #8c8c8c">所报校区：</td>
                <td>{{findstudent.campus_name}}</td>
            </tr>
            <tr>
                <td height="52" style="color: #8c8c8c" >负责人职务：</td>
                <td><span class="responsibility">{{findstudent.role_name}}</span></td>
                <td style="color: #8c8c8c">负责人：</td>
                <td><span class="responsibility">{{findstudent.staff_name}}</span></td>
                <td style="color: #8c8c8c">调入校区：</td>
                <td>
                    <div class="tankuang-tf">
                      <schoolcampus></schoolcampus>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
            </div>
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr  style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52"><span class="revise-list">一对一情况</span></td>
                        <td></td>
                        <td height="52" style="color: #8c8c8c">享受的优惠政策：</td>
                        <td><saleone2one></saleone2one></td>
                        <td></td>
                        <td>
                            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" ng-click="onetoonesubmit()">提交</button>
                        </td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">5A小时数：</td>
                        <td>{{findstudent.teach_5a_hour_total}}</td>
                        <td style="color: #8c8c8c">8A小时数：</td>
                        <td>{{findstudent.teach_8a_hour_total}}</td>
                        <td style="color: #8c8c8c">总监小时数：</td>
                        <td>{{findstudent.teach_director_hour_total}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">消耗5A小时数：</td>
                        <td>{{findstudent.teach_5a_hour_use}}</td>
                        <td style="color: #8c8c8c">消耗8A小时数：</td>
                        <td>{{findstudent.teach_8a_hour_use}}</td>
                        <td style="color: #8c8c8c">消耗总监小时数：</td>
                        <td>{{findstudent.teach_director_hour_use}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">总小时数：</td>
                        <td>{{findstudent.teach_5a_hour_total+findstudent.teach_8a_hour_total+findstudent.teach_director_hour_total}}</td>
                        <td style="color: #8c8c8c">优惠政策：</td>
                        <td ng-if="findstudent.sale_id==null">
                            <span class="check-daily" >--</span>
                        </td>
                        <td ng-if="findstudent.sale_id!=null">
                            <span class="check-daily" >{{findstudent.sale_name}}</span>
                        </td>
                        <td style="color: #8c8c8c">赠送小时数：</td>
                        <td>{{findstudent.sale_hour}}</td>
                    </tr>

                    </tbody>
                </table>
            </div>
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr  style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52"><span class="revise-list" >学费信息</span></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">5A级学费：</td>
                        <td>{{findstudent.tuition_5a}}</td>
                        <td style="color: #8c8c8c">8A级学费：</td>
                        <td>{{findstudent.tuition_8a}}</td>
                        <td style="color: #8c8c8c">总监级学费：</td>
                        <td>{{findstudent.tuition_director}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">应缴学费：</td>
                        <td>{{findstudent.tuition_total}}</td>
                        <td style="color: #8c8c8c">已缴学费：</td>
                        <td>{{findstudent.tuition_reality}}</td>
                        <td style="color: #8c8c8c">所欠学费：</td>
                        <td>{{findstudent.tuition_lack}}</td>
                    </tr>
                    </tbody>
                </table>
        </div>

        </div>
    </div>
</div>
